package com.csyf.manager.service;

import com.csyf.manager.channel.base.BaseTradeRequestVo;
import com.csyf.manager.channel.base.TrandeVo;
import com.csyf.manager.entity.SysTrade;

/**
 * @Author: Enzo
 * @Date: 2018/3/29 16:58
 */
public interface OrderBiz {




    /**
     * 成功处理的方法
     * @param orderNo
     */
    void orderSuccess(String orderNo, String srcCode, String message);

    void orderSuccess(String orderNo, String srcCode, String message, String srcOrderNo);

    String createOrder(TrandeVo vo) throws Exception;


    //String createOrder(BaseTradeRequestVo vo) throws Exception;


    void orderFaile(String order, String code, String message);


    void processOrder(SysTrade sysTrade);

    /**
     * 异步通知状态修改(默认0-0 前面的0:次数,后面的0 状态)
     * @param vo
     * @param downStatus
     */
    String updateNotifyStatus(SysTrade vo, String downStatus);
}
